import sys
from PyQt5.QtWidgets import QApplication
from main_window import MainWindow
from PyQt5.QtGui import QIcon
from style import qss
import resources
def main():
    app = QApplication(sys.argv)
    app.setWindowIcon(QIcon(":/icons/tool.png"));
    # 加载样式表
    # with open("style.qss", "r") as f:
    #     app.setStyleSheet(f.read())
    app.setStyleSheet(qss)

    window = MainWindow()
    window.show()
    sys.exit(app.exec())

if __name__ == "__main__":
    main()